//
//  LSZQueryLengthViewController.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/10/10.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZQueryLengthViewController.h"

@interface LSZQueryLengthViewController ()
@property(nonatomic,strong) UILabel * labelTitle;

@end

@implementation LSZQueryLengthViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = dividerColor;
    [self setUI];
}
-(void)setUI
{
    UIView * viewBack = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 80)];
    viewBack.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:viewBack];
    
    self.labelTitle = [[UILabel alloc]initWithFrame:CGRectMake(0, 15, viewBack.frame.size.width, viewBack.frame.size.height-30)];
    self.labelTitle.font = FONT_(20);
    self.labelTitle.textAlignment = NSTextAlignmentCenter;
    self.labelTitle.textColor = lightColor;
    CGFloat time = (CGFloat)[[_MyCenter myHours] integerValue]/3600;
    NSMutableAttributedString * aString = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"总时长:%.2f 学时",time]];
    [aString addAttribute:NSForegroundColorAttributeName value:themeColor  range:NSMakeRange(4, aString.length-4)];
    self.labelTitle.attributedText = aString;
    [viewBack addSubview:self.labelTitle];
    
}
@end
